import http from "../uitls/http.js";

// 登录
export const loginAPI = (data) => {
  return http({
    url: `/user/login`,
    method:'post',
    data
  })
}

// 登出
export const logoutAPI = () => {
  return http({
    url: `/user/logout`,
    method:'delete'
  })
}

// 注册
export const registerAPI = (data) => {
  return http({
    url: `/user/register`,
    method:'post',
    data
  })
}
